//package com.haiyi.activiti.engine.framework.activiti.manager.impl;
//
//import com.haiyi.activiti.engine.framework.activiti.manager.ProcessManager;
//import com.haiyi.activiti.engine.util.Assert;
//import org.activiti.engine.RuntimeService;
//import org.activiti.engine.runtime.ProcessInstance;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//import org.springframework.transaction.annotation.Transactional;
//
//import java.util.Map;
//
///**
// * <p> </p>
// *
// * <pre> Created: 2018/12/5 16:09 </pre>
// *
// * @author hlu
// * @version 1.0
// * @since JDK 1.7
// */
//@Component
//@Transactional(rollbackFor = Exception.class)
//public class ProcessManagerImpl2 implements ProcessManager {
//    @Autowired
//    private RuntimeService runtimeService;
//
//
//    @Override
//    public ProcessInstance startProcessInstanceByKey(String processKey) {
//        final ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processKey);
//        Assert.isNotNull(processInstance,"流程启动失败！");
//        return processInstance;
//    }
//
//    @Override
//    public ProcessInstance startProcessInstanceByKey(String processKey, Map<String, Object> variables) {
//        final ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processKey, variables);
//        Assert.isNotNull(processInstance,"流程启动失败！");
//        return processInstance;
//    }
//
//    @Override
//    public ProcessInstance startProcessInstanceByKey(String processKey, String businessKey,Map<String, Object> variables) {
//        final ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processKey, businessKey,variables);
//        Assert.isNotNull(processInstance,"流程启动失败！");
//        return processInstance;
//    }
//
//
//
//}
